export default {
  data() {
    return {
      loading: false,
      detailData: {}
    }
  },
  methods: {
    async getDetailData() {
      try {
        this.loading = true
        const id = this.$route.params.id
        const { data } = await this.services.detail({ id })
        this.detailData = data
      } finally {
        this.loading = false
      }
    }
  },
  created() {
    this.getDetailData()
  }
}
